-- 30
function ccR_Monk_Chi_Wave()
	if specNumber == nil then specNumber = ccrPlayerSpec() end
	local vUseChiWave = ccRS["Monk_" .. specNumber .. "_UseChiWave"]
	local vChiWaveHP = ccRS["Monk_" .. specNumber .. "_ChiWaveHP"]

	if vUseChiWave
	and ccrPlayerHasTalent(CHI_WAVE)
	and ccrPlayerHealth() <= vChiWaveHP
	and SpellIsReady(CHI_WAVE)
	then
		ccrCast(CHI_WAVE)
		return
	end
	return
end

function ccR_Monk_Zen_Sphere()
	if specNumber == nil then specNumber = ccrPlayerSpec() end
	local vUseZenSphere = ccRS["Monk_" .. specNumber .. "_UseZenSphere"]
	local vZenSphereHP = ccRS["Monk_" .. specNumber .. "_ZenSphereHP"]

	if vUseZenSphere
	and ccrPlayerHasTalent(ZEN_SPHERE)
	and ccrPlayerHealth() <= vZenSphereHP
	and SpellIsReady(ZEN_SPHERE)
	then
		ccrCast(ZEN_SPHERE)
		return
	end
	return
end

function ccR_Monk_Chi_Burst()
	if specNumber == nil then specNumber = ccrPlayerSpec() end
	local vUseChiBurst = ccRS["Monk_" .. specNumber .. "_UseChiBurst"]
	local vChiBurstHP = ccRS["Monk_" .. specNumber .. "_ChiBurstHP"]

	if vUseChiBurst
	and ccrPlayerHasTalent(CHI_BURST)
	and ccrPlayerHealth() <= vChiBurstHP
	and SpellIsReady(CHI_BURST)
	then
		ccrCast(CHI_BURST)
		return
	end
	return
end

-- 45

function ccR_Monk_Chi_Brew(specNumber)
	if specNumber == nil then specNumber = ccrPlayerSpec() end
	local vUseChiBrew = ccRS["Monk_" .. specNumber .. "_UseChiBrew"]

	if vUseChiBrew
	and ccrPlayerHasTalent(CHI_BREW)
	and SpellIsReady(CHI_BREW)
	and ccrPlayerIsInCombat()
	and ccrChi() < 4
	then
		ccrCast(CHI_BREW)
		return
	end
	return
end

-- 60

function ccR_Monk_Ring_of_Peace(specNumber)
	if specNumber == nil then specNumber = ccrPlayerSpec() end
	local vUseRingOfPeace = ccRS["Monk_" .. specNumber .. "_UseRingOfPeace"]
	local vRingOfPeaceCount = ccRS["Monk_" .. specNumber .. "_RingOfPeaceCount"]
	if vUseRingOfPeace
	and ccrPlayerHasTalent(RING_OF_PEACE)
	and SpellIsReady(RING_OF_PEACE)
	and #tblPGetMeleeEnemies >= vRingOfPeaceCount
	then
		ccrCast(RING_OF_PEACE,"player")
		return
	end
	return
end

function ccR_Monk_Leg_Sweep(specNumber)
	if specNumber == nil then specNumber = ccrPlayerSpec() end
	local vUseLegSweep = ccRS["Monk_" .. specNumber .. "_UseLegSweep"]
	local vLegSweepCount = ccRS["Monk_" .. specNumber .. "_LegSweepCount"]
	if vUseLegSweep
	and ccrPlayerHasTalent(LEG_SWEEP)
	and SpellIsReady(LEG_SWEEP)
	and #tblPGetMeleeEnemies >= vLegSweepCount
	then
		ccrCast(LEG_SWEEP)
		return
	end
	return
end

-- 75

function ccR_Monk_Dampen_Harm(specNumber)
	if specNumber == nil then specNumber = ccrPlayerSpec() end
	local vUseDampenHarm = ccRS["Monk_" .. specNumber .. "_UseDampenHarm"]
	local vDampenHarmHP = ccRS["Monk_" .. specNumber .. "_DampenHarmHP"]
	if vUseDampenHarm
	and ccrPlayerHealth() <= vDampenHarmHP
	and SpellIsReady(DAMPEN_HARM)
	and ccrPlayerIsInCombat()
	then
		ccrCast(DAMPEN_HARM)
		return
	end
end

function ccR_Monk_Diffuse_Magic(specNumber)
end